<template>
    <div>
      <div v-if="fromdata.isSpecialDebt==1">
        <div class="mt10" style=" display: flex;border-bottom: 1px solid #ebedf0;">
          <div class="blue_item" />
          <span class="font15" style="display: flex; line-height: 33px;margin-left:5px;  flex:1;">专项债商机信息</span>
        </div>
        <van-field readonly required name="leadOpportNumber" :value="fromdata.leadOpportNumber" label="专项债线索商机编码：" label-width="10em" />
        <dict_type_value :name='"areaOfBelonging"' :keyType='"areaOfBond"' :model='fromdata.areaOfBelonging' :label='"所属领域："' />
        <van-field readonly required name="areaOfBelongRemark" :value="fromdata.areaOfBelongRemark" label="所属领域说明：" label-width="7em" autosize type="textarea" rows="1"/>
        <van-field readonly required name="lastVisitDate" :value="fromdata.lastVisitDate" label="最近一次走访时间：" label-width="9em" />
        <dict_type_value :name='"isNeedOnSite"' :model='fromdata.isNeedOnSite' :label='"是否需要专人驻场："' />
        <dict_type_value :name='"currentStage"' :model='fromdata.currentStage' :label='"专项债当前环节："' />
        <van-field readonly required name="colutionManagerName" :value="fromdata.colutionManagerName" label="专项债移动侧项目负责人：" label-width="12em" />
        <van-field readonly required name="otherProcessesDesc" :value="fromdata.otherProcessesDesc" label="专项债其他环节说明：" label-width="10em" />
        <van-field readonly required name="phoneNumber" :value="fromdata.phoneNumber" label="专项债移动侧项目联系方式：" label-width="13em" />
        <dict_type_value :name='"specialBondPartner"' :model='fromdata.specialBondPartner' :label='"专项债合作方："' />
        <van-field readonly required name="otherPartnersDesc" :value="fromdata.otherPartnersDesc" label="专项债其他合作方说明：" label-width="11em" />
      </div>
      <div v-if="fromdata.isSpecialDebt==1">
        <div class="mt10" style=" display: flex;border-bottom: 1px solid #ebedf0;">
          <div class="blue_item" />
          <span class="font15" style="display: flex; line-height: 33px;margin-left:5px;  flex:1;">专项债券信息</span>
        </div>
        <van-field readonly required name="universalBondCode" :value="fromdata.universalBondCode" label="全网债券编码：" label-width="7em" />
        <van-field readonly required name="projectName" :value="fromdata.projectName" label="债券项目统一名称：" label-width="9em"  autosize type="textarea" rows="1"/>
        <van-field readonly required name="totalInvestment" :value="fromdata.totalInvestment" label="总投资（万元）：" label-width="8em" />
        <van-field readonly required name="equityExcludBonds" :value="fromdata.equityExcludBonds" label="不含专项债的资本金（万元）：" label-width="14em" />
        <van-field readonly required name="totalAmountBonds" :value="fromdata.totalAmountBonds" label="申请专项债总额（万元）：" label-width="12em" />
        <van-field readonly required name="province" :value="fromdata.province" label="区划：" label-width="3em" />
        <van-field readonly required name="prefectureLevelCity" :value="fromdata.prefectureLevelCity" label="地市：" label-width="3em" />
        <van-field readonly required name="district" :value="fromdata.district" label="区县：" label-width="3em" />
        <dict_type_value :name='"areaOfBond"' :model='fromdata.areaOfBond' :label='"专项债所属领域："' />
        <van-field readonly required name="areaOfBondRemark" :value="fromdata.areaOfBondRemark" label="专项债所属领域说明：" label-width="10em" autosize type="textarea" rows="1"/>
        <van-field readonly required name="anticipatedEarnings" :value="fromdata.anticipatedEarnings" label="预期收入（收益）（万元）：" label-width="13em" />
        <van-field readonly required name="cost" :value="fromdata.cost" label="成本（万元）：" label-width="7em" />
        <van-field readonly required name="revenueSources" :value="fromdata.revenueSources" label="收入来源：" label-width="5em" autosize type="textarea" rows="1"/>
        <van-field readonly required name="constructionContent" :value="fromdata.constructionContent" label="建设内容：" label-width="5em" autosize type="textarea" rows="1"/>
        <van-field  readonly required label="发行明细（批次）" label-width="8em" />
        <el-table  :data="fromdata.debtIssuanceInfoList" border style="width: 100%">
          <el-table-column prop="issueDate" width="100px" label="发行时间" />
          <el-table-column prop="issueAmount" label="发行额（万元）" />
          <el-table-column prop="issueRate" label="发行利率" />
          <el-table-column prop="associatedBond" label="所属债券" />
          <el-table-column prop="batchID" label="批次" />
        </el-table>

      </div>
        <!-- 能力信息 -->
        <section-header :sectionTitle="'能力信息'" />
        <div>
          <van-field readonly required name="abilityInformationState"
                     :value="mergeAbilityInfoMode.isAbilityInformationList" label="是否使用中台能力:" label-width="9em" />
          <van-field v-if="mergeAbilityInfoMode.isAbilityInformationList=='是'" readonly required label="能力名称:" label-width="5em" />
          <el-table v-if="mergeAbilityInfoMode.isAbilityInformationList=='是'&&mergeAbilityInfoMode.abilityInformationLists" :data="mergeAbilityInfoMode.abilityInformationLists"
                    :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" border
                    style="width: 100%">
            <el-table-column prop="mustAbilityName" label="必融能力名称" width="130" />
            <el-table-column prop="abilityName" label="能力名称" width="150" />
            <el-table-column prop="abilityCode" label="能力编码" />
            <el-table-column prop="abilityProvider" label="能力提供方" />
            <el-table-column prop="isReusable" label="是否复用" />
            <el-table-column prop="cannotManyCauseReason" label="无法复用必融能力原因" width="170"/>
            <el-table-column prop="burdenOfProof" label="无法使用必融能力举证" width="170"/>
          </el-table>
          <van-field readonly required name="isAbilityInfoZt"
                     :value="mergeAbilityInfoMode.isAbilityInfoZt" label="是否使用中台非必融能力:" label-width="12em" />
          <van-field v-if="mergeAbilityInfoMode.isAbilityInfoZt=='是'" readonly required label="能力名称:" label-width="5em" />
          <el-table v-if="mergeAbilityInfoMode.isAbilityInfoZt=='是'&&mergeAbilityInfoMode.abilityInfoZts" :data="mergeAbilityInfoMode.abilityInfoZts"
                    :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" border
                    style="width: 100%">
            <el-table-column prop="abilityProvider" label="必融能力名称" width="130" />
            <el-table-column prop="abilityName" label="能力名称" width="150" />
            <el-table-column prop="abilityCode" label="能力编码" />
          </el-table>
          <van-field readonly required name="isBigDataProductsList"
                     :value="mergeAbilityInfoMode.isBigDataProductsList" label="是否使用大数据产品:" label-width="10em" />
          <van-field v-if="mergeAbilityInfoMode.isBigDataProductsList=='是'" readonly required label="产品名称:" label-width="5em" />
          <el-table v-if="mergeAbilityInfoMode.isBigDataProductsList=='是'&&mergeAbilityInfoMode.bigDataProductsLists" :data="mergeAbilityInfoMode.bigDataProductsLists"
                    :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" border
                    style="width: 100%">
            <el-table-column prop="firstClassProductName" label="一级产品名称" width="130" />
            <el-table-column prop="productClass" label="产品分类" width="150" />
            <el-table-column prop="maProductName" label="产品名称" />
            <el-table-column prop="tariffCode" label="资费代码" />
            <el-table-column prop="billingMode" label="计费模式" />
          </el-table>
          <van-field readonly required name="abilityPrecipitate" :value="mergeAbilityInfoMode.abilityPrecipitate"
                     label="是否沉淀中台能力:" label-width="9em" />
          <van-field v-if="mergeAbilityInfoMode.abilityPrecipitate=='是'" readonly required name="abilityName" :value="mergeAbilityInfoMode.abilityName"
                     label="能力名称:" label-width="5em" />
          <van-field v-if="mergeAbilityInfoMode.abilityPrecipitate=='是'" readonly required autosize type="textarea" rows="1"
                     name="abilityIntroduce" :value="mergeAbilityInfoMode.abilityIntroduce" label="能力介绍:" label-width="5em" />

          <!--          <van-field readonly required name="isSolutionPlanInfoZt"-->
          <!--                     :value="mergeAbilityInfoMode.isSolutionPlanInfoZt" label="是否使用中台解决方案:" label-width="11em" />-->
          <!--          <van-field v-if="mergeAbilityInfoMode.isSolutionPlanInfoZt=='是'" readonly required label="产品名称:" label-width="5em" />-->
          <!--          <el-table v-if="mergeAbilityInfoMode.isSolutionPlanInfoZt=='是'&&mergeAbilityInfoMode.solutionPlanInfoZts" :data="mergeAbilityInfoMode.solutionPlanInfoZts"-->
          <!--                    :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" border-->
          <!--                    style="width: 100%">-->
          <!--            <el-table-column prop="solutionProviderName" label="解决方案提供方" width="130" />-->
          <!--            <el-table-column prop="solutionName" label="解决方案名称" width="150" />-->
          <!--            <el-table-column prop="solutionCode" label="解决方案编码" />-->
          <!--          </el-table>-->
        </div>


        <!-- 项目承办 -->
        <section-header v-if="hasProjectModule" :sectionTitle="'项目承办'" />
        <div v-if="hasProjectModule">
            <!-- 成本 -->
            <div v-if="buildTypeIsCB">
                <van-field readonly name="isFrameworkProject" :value="uFromdata.isFrameworkProject == 'true' ? '是' : '否'"
                    label="是否需要关联框架类甄选项目:" label-width="14em" />
                <van-field v-if="showSelectionLevel" readonly name="selectionLevel" :value="uFromdata.selectionLevel"
                            label="甄选层级:" label-width="5em" />


                <div v-if="hasPickApply">
                    <van-field readonly required name="pickApplyCode" :value="uFromdata.pickApplyCode" label="甄选活动编码:"
                        label-width="7em" />
                    <van-field readonly required name="pickActivityName" :value="uFromdata.pickActivityName" label="甄选活动名称:"
                        label-width="7em" />
                </div>

                <van-field readonly required name="isDecision" :value="isDecisionValue()" label="是否标前甄选:"
                    label-width="7em" />

                <van-field v-if="uFromdata.isDecision == 'false'" readonly name="isMergePurchase"
                    :value="uFromdata.isMergePurchase" label="是否多项目合并采购:" label-width="10em" />

                <div v-if="uFromdata.isMergePurchase == '是'">
                    <van-field readonly required name="relateProjectId" :value="uFromdata.relateProjectId" label="关联立项项目编号:"
                        label-width="9em" />
                    <van-field readonly required name="relateProjectName" :value="uFromdata.relateProjectName"
                        label="关联立项项目名称:" label-width="9em" />
                </div>

                <van-field v-if="hasPartnerSelectTime" readonly name="partnerSelectTime"
                    :value="uFromdata.partnerSelectTime" label="合作伙伴甄选要求时间:" label-width="11em" />

                <!-- 预算模块 -->
                <div v-if="hasBudgetBox">
                    <div v-for="(fileitem) in uFromdata.noDecision.budgetProject" :key="fileitem.id">
                        <xu-budget-box :budgetProject="fileitem" />

                    </div>
                </div>
            </div>
          <div v-else>
            <van-field readonly required name="pmsSyncStatus" :value="uFromdata.pmsSyncStatus" label="是否已同步到PMS:" label-width="8.5em" />
            <div v-if="isShowPMSModule1">
              <div class="module">投资项目PMS需求信息</div>
              <van-field readonly required name="frontRequestCode" :value="uFromdata.frontRequestCode" label="需求编码:" label-width="4.5em" />
              <van-field readonly required name="requestName" :value="uFromdata.requestName" label="需求名称:" label-width="4.5em" />
              <van-field readonly name="foreCostAmt" :value="uFromdata.foreCostAmt" label="预计投资额(元):" label-width="7em" />
              <van-field readonly name="requestStatus" :value="uFromdata.requestStatus" label="需求状态:" label-width="4.5em" />
            </div>
            <div>
              <div class="module">投资项目PMS项目信息</div>
              <van-field readonly required name="pmsProjectCode" :value="uFromdata.pmsProjectCode" label="PMS项目编码:" label-width="6.5em" />
              <van-field readonly required name="pmsProjectName" :value="uFromdata.pmsProjectName" label="PMS项目名称:" label-width="6.5em" />
              <van-field readonly name="projectYear" :value="uFromdata.projectYear" label="项目年度:" label-width="4.5em" />
              <van-field readonly name="projectModule" :value="uFromdata.projectModule" label="立项模式:" label-width="4.5em" />
              <van-field readonly name="projectBusStatus" :value="uFromdata.projectBusStatus" label="项目全流程状态:" label-width="7.5em" />
              <van-field readonly name="projectCheckDate" :value="uFromdata.projectCheckDate" label="竣工验收批复时间:" label-width="8.5em" />
              <van-field readonly name="designReplyDate" :value="uFromdata.designReplyDate" label="设计批复时间:" label-width="6.5em" />
              <van-field readonly name="projectReplyDate" :value="uFromdata.projectReplyDate" label="立项批复时间:" label-width="6.5em" />
              <van-field readonly name="actualStartDate" :value="uFromdata.actualStartDate" label="实际开工时间:" label-width="6.5em" />
              <van-field readonly name="actualEndDate" :value="uFromdata.actualEndDate" label="实际完工时间:" label-width="6.5em" />
              <van-field readonly name="projectAmounts" :value="uFromdata.projectAmounts" label="项目金额(元):" label-width="6em" />
              <van-field readonly name="decisionAmounts" :value="uFromdata.decisionAmounts" label="立项批复金额(元):" label-width="8em" />
              <van-field readonly name="validatedMoney" :value="uFromdata.validatedMoney" label="决算审计金额(元):" label-width="8em" />
              <van-field readonly name="designReplyAmounts" :value="uFromdata.designReplyAmounts" label="设计批复金额(元):" label-width="8em" />
              <van-field readonly name="yieldFloor" :value="uFromdata.yieldFloor" label="内部收益率下限:" label-width="7.5em" />
              <van-field readonly name="singleUpperInvestment" :value="uFromdata.singleUpperInvestment" label="单个投资规模上限:" label-width="8.5em" />
              <van-field readonly name="netPresentValue" :value="uFromdata.netPresentValue" label="净现值率:" label-width="4.5em" />
              <van-field readonly name="dynamicPayBack" :value="uFromdata.dynamicPayBack" label="动态回收期:" label-width="5.5em" />
            </div>
            <div v-if="isShowPMSModule3">
              <div class="module">投资项目PMS精方案信息</div>
              <van-field readonly name="programCode" :value="uFromdata.programCode" label="精方案编码:" label-width="5.5em" />
              <van-field readonly name="programName" :value="uFromdata.programName" label="精方案名称:" label-width="5.5em" />
              <van-field readonly name="programMoney" :value="uFromdata.programMoney" label="方案金额:" label-width="4.5em" />
              <van-field readonly required name="previewStatus" :value="uFromdata.previewStatus" label="方案状态:" label-width="4.5em" />
              <van-field readonly name="programStartTime" :value="uFromdata.programStartTime" label="方案启动时间:" label-width="6.5em" />
              <van-field readonly name="programPreviewTime" :value="uFromdata.programPreviewTime" label="方案评审时间:" label-width="6.5em" />
              <van-field readonly name="designMoney" :value="uFromdata.designMoney" label="设计费:" label-width="3.5em" />
              <van-field readonly name="constructionMoney" :value="uFromdata.constructionMoney" label="施工费:" label-width="3.5em" />
              <van-field readonly name="assortMoney" :value="uFromdata.assortMoney" label="监理费:" label-width="3.5em" />
              <van-field readonly name="supportMoney" :value="uFromdata.supportMoney" label="配套费:" label-width="3.5em" />
              <van-field readonly name="buildCompanyCode" :value="uFromdata.buildCompanyCode" label="建设单位编码:" label-width="6.5em" />
              <van-field readonly name="buildCompanyName" :value="uFromdata.buildCompanyName" label="建设单位名称:" label-width="6.5em" />
            </div>
          </div>
        </div>

        <!-- 合作伙伴甄选信息 -->
        <div v-if="hasPartner">
            <!-- 甄选申请信息 -->
            <section-header :sectionTitle="'甄选申请信息'" />
            <div>
                <van-field readonly required label="采购目录:" label-width="5em" />
                <el-table :data="mapPickApproval.pickPurchaseCatalogue" :header-cell-style="{ textAlign: 'center' }"
                    :cell-style="{ textAlign: 'center' }" border style="width: 100%">
                    <el-table-column prop="purchaseCategory" label="采集类别" width="130" />
                    <el-table-column prop="largeCategory" label="大类" width="150" />
                    <el-table-column prop="middleCategory" label="中类" />
                    <el-table-column prop="smallCategory" label="小类" width="130" />
                    <el-table-column prop="pickChoiceProduct" label="采购产品" width="150" />
                    <el-table-column prop="purchaseSpecifications" label="规格型号" />
                    <el-table-column prop="purchaseQuantity" label="采购数量" width="130" />
                    <el-table-column prop="purchaseMeasureUnit" label="计量单位" width="150" />
                </el-table>

                <van-field readonly required label="预算项目信息:" label-width="5em" />
                <el-table :data="mapPickApproval.pickListMapMode" :header-cell-style="{ textAlign: 'center' }"
                    :cell-style="{ textAlign: 'center' }" border style="width: 100%">
                    <el-table-column prop="pickApplyCode" label="申请单号" width="130" />
                    <el-table-column prop="applyUnit" label="申请人部门" width="150" />
                    <el-table-column prop="applyPeople" label="申请人姓名" />
                    <el-table-column prop="projectEstablishNumber" label="申请预算项目编号" width="130" />
                    <el-table-column prop="projectEstablishName" label="申请预算项目名称" width="150" />
                    <el-table-column prop="activityTax" label="申请预算税率" />
                    <el-table-column prop="declareAmount" label="申请预算含税金额" width="130" />
                    <el-table-column prop="declareNoAmount" label="申请预算不含税金额" width="150" />
                </el-table>
            </div>

            <!-- 甄选方案信息 -->
            <section-header :sectionTitle="'甄选方案信息'" />
            <div>
                <van-field readonly required name="pickApplyCode" :value="mapPickScheme.pickApplyCode" label="申请方案单号:"
                    label-width="7em" />
                <van-field readonly required name="undertakeDepartment" :value="mapPickScheme.undertakeDepartment"
                    label="承办人部门:" label-width="6em" />
                <van-field readonly required name="undertakeName" :value="mapPickScheme.undertakeName" label="承办人姓名:"
                    label-width="6em" />
                <van-field readonly required name="programmeDecisionDate" :value="mapPickScheme.programmeDecisionDate"
                    label="方案决策时间:" label-width="7em" />
                <van-field readonly required name="programmeHierarchy" :value="mapPickScheme.programmeHierarchy"
                    label="方案决策层级:" label-width="7em" />
                <van-field readonly required name="isAnnouncement" :value="mapPickScheme.isAnnouncement" label="是否ES公告:"
                    label-width="6.5em" />
                <van-field readonly required name="announcementName" :value="mapPickScheme.announcementName" label="公告名称:"
                    label-width="5em" />

                <van-field readonly required label="甄选文件:" label-width="5em" />
                <div v-for="fileitem in mapPickScheme.pickFileList" :key="fileitem.id" style="margin-left: 20px">
                    <div readonly class="font14 fileLink" style="color: #0f85cf">
                        <a target="_blank" @click="openFileUrlfun(fileitem.anonymousFilePath)">{{ fileitem.fileName }}</a>
                    </div>
                </div>

                <van-field readonly required label="甄选方案附件:" label-width="7em" />
                <div v-for="fileitem in mapPickScheme.pickPlanFileList" :key="fileitem.id" style="margin-left: 20px">
                    <div readonly class="font14 fileLink" style="color: #0f85cf">
                        <a target="_blank" @click="openFileUrlfun(fileitem.anonymousFilePath)">{{ fileitem.fileName }}</a>
                    </div>
                </div>
            </div>

            <!-- 甄选结果信息 -->
            <section-header :sectionTitle="'甄选结果信息'" />
            <div>
                <van-field readonly required name="caseReviewTime" :value="mapPickResult.caseReviewTime" label="结果确认时间:"
                    label-width="7em" />
                <van-field readonly required name="caseReviewGrade " :value="mapPickResult.caseReviewGrade" label="结果确认级别:"
                    label-width="7em" />

                <van-field readonly required label="拟签约信息:" label-width="6em" />
                <el-table :data="mapPickResult.pickCaseReviewProposedList" :header-cell-style="{ textAlign: 'center' }"
                    :cell-style="{ textAlign: 'center' }" border style="width: 100%">
                    <el-table-column prop="analogArrangeYear" label="拟签约年份" width="130" />
                    <el-table-column prop="analogArrangeMoneyBase" label="拟签约资金来源" width="150" />
                    <el-table-column prop="analogArrangeTaxQuota" label="拟签约税额（%）" width="110" />
                    <el-table-column prop="analogArrangeTaxMoney" label="拟签约税金（万元）" width="110" />
                    <el-table-column prop="analogArrangeTax" label="拟签约含税总价（万元）" width="140" />
                    <el-table-column prop="analogArrangeNotTax" label="拟签约不含税总价（万元）" width="140" />
                </el-table>

                <van-field readonly required label="中标合作伙伴信息:" label-width="9em" />
                <el-table :data="mapPickResult.pickPartnerAnswerList" :header-cell-style="{ textAlign: 'center' }"
                    :cell-style="{ textAlign: 'center' }" border style="width: 100%">
                    <el-table-column prop="partnerName" label="合作伙伴名称" width="130" />
                    <el-table-column prop="partnerCode" label="合作伙伴编码" width="150" />
                    <el-table-column prop="proposePrice" label="中标金额" />
                    <el-table-column prop="pickIndustry" label="甄选行业" width="130" />
                    <el-table-column prop="pickScene" label="甄选场景" width="150" />
                    <el-table-column prop="contact" label="联系人" width="130" />
                    <el-table-column prop="contactPhone" label="联系人电话" width="130" />
                </el-table>

                <van-field readonly required label="甄选结果汇报材料:" label-width="9em" />
                <div v-for="fileitem in mapPickResult.reviewSchoolList" :key="fileitem.id" style="margin-left: 20px">
                    <div readonly class="font14 fileLink" style="color: #0f85cf">
                        <a target="_blank" @click="openFileUrlfun(fileitem.anonymousFilePath)">{{ fileitem.fileName }}</a>
                    </div>
                </div>

                <van-field readonly required label="结果会议纪要附件:" label-width="9em" />
                <div v-for="fileitem in mapPickResult.meetingSummaryList" :key="fileitem.id" style="margin-left: 20px">
                    <div readonly class="font14 fileLink" style="color: #0f85cf">
                        <a target="_blank" @click="openFileUrlfun(fileitem.anonymousFilePath)">{{ fileitem.fileName }}</a>
                    </div>
                </div>
            </div>

            <!-- 甄选二次谈判信息 -->
            <section-header :sectionTitle="'甄选二次谈判信息'" />
            <div>
                <van-field readonly name="pickActivityName" :value="mapPickReconsider.pickActivityName" label="甄选项目名称:"
                    label-width="7em" />
                <van-field readonly name="pickApplyCode" :value="mapPickReconsider.pickApplyCode" label="甄选项目编码:"
                    label-width="7em" />
                <van-field readonly name="removeTaxMoney" :value="mapPickReconsider.removeTaxMoney" label="二次谈判不含税金额:"
                    label-width="10em" />
                <van-field readonly name="containTaxMoney" :value="mapPickReconsider.containTaxMoney" label="二次谈判含税金额:"
                    label-width="9em" />
                <van-field readonly name="proposedContractType" :value="mapPickReconsider.proposedContractType"
                    label="拟签署合同类型:" label-width="8em" />
                <van-field readonly name="negotiationResultState" :value="mapPickReconsider.negotiationResultState"
                    label="谈判结果是否应用:" label-width="9em" />

                <van-field readonly label="合作伙伴信息:" label-width="7em" />
                <el-table :data="mapPickReconsider.partnerAnswerList" :header-cell-style="{ textAlign: 'center' }"
                    :cell-style="{ textAlign: 'center' }" border style="width: 100%">
                    <el-table-column prop="partnerName" label="合作伙伴名称" width="130" />
                    <el-table-column prop="partnerCode" label="合作伙伴编码" width="150" />
                    <el-table-column prop="twoRemoveTaxMoney" label="二次谈判不含税金额" />
                    <el-table-column prop="twoContainTaxMoney" label="二次谈判含税金额" width="130" />
                    <el-table-column prop="moneySaving" label="节约金额" width="150" />
                    <el-table-column prop="twoNegotiationTime" label="二次谈判时间" />
                </el-table>

                <van-field readonly label="二次谈判过程文件:" label-width="9em" />
                <div v-for="fileitem in mapPickReconsider.twoNegotiateList" :key="fileitem.id" style="margin-left: 20px">
                    <div readonly class="font14 fileLink" style="color: #0f85cf">
                        <a target="_blank" @click="openFileUrlfun(fileitem.anonymousFilePath)">{{ fileitem.fileName }}</a>
                    </div>
                </div>

                <van-field readonly label="二次谈判结果文件:" label-width="9em" />
                <div v-for="fileitem in mapPickReconsider.twoNegotiateResultList" :key="fileitem.id"
                    style="margin-left: 20px">
                    <div readonly class="font14 fileLink" style="color: #0f85cf">
                        <a target="_blank" @click="openFileUrlfun(fileitem.anonymousFilePath)">{{ fileitem.fileName }}</a>
                    </div>
                </div>
            </div>
        </div>

        <!-- 空白格 -->
        <van-field label-width="10em" readonly label=" " class="lyy-width" />
        <van-field label-width="10em" readonly label=" " class="lyy-width" />
    </div>
</template>
 
<script>

import { mapGetters } from "vuex";
import SectionHeader from "../sztdzj/sztdzjDetail/section-header.vue";
import { hereProjectSelectPickModule } from "@/api/dictapi";
import { Notify, Toast } from "vant";
import XuBudgetBox from './xuBudgetBox.vue';
import dict_type_value from "@/components/dict_type_value/index.vue";



export default {
    data() {
        return {

            uFromdata: {},
            mapPickApproval: {}, /// 甄选申请信息
            mapPickReconsider: {},   /// 甄选二次谈判信息
            mapPickResult: {},   /// 甄选结果信息
            mapPickScheme: {},   /// 甄选方案信息


            canEditDSCB: false,
            canEditSGSCB: false,

            decisionColumns: [
                { label: "同意", value: "同意" },
                { label: "不同意", value: "不同意" },
            ],
            currentDate: new Date(),

            cityDecisionShow: false,
            cityDecisionDateShow: false,

            provinceDecisionShow: false,
            provinceDecisionDateShow: false,
        };
    },

    computed: {
        ...mapGetters(["user"]),
        ...mapGetters(["userinfo"]),
        isShowPMSModule1(){
          return this.uFromdata.pmsProjectCode&&this.uFromdata.pmsProjectCode !="";
        },
        isShowPMSModule3(){
          return this.uFromdata.projectModule=='10';
        },
        /// 是否展示 决策层级
        /// 后续规则可能会改变
        showSelectionLevel(){

            return this.uFromdata.isFrameworkProject == 'true' &&  this.uFromdata.selectionLevel;
        },

        /// 预算模块
        hasBudgetBox() {

            return this.uFromdata.isDecision == 'false';
        },

        /// 甄选活动编码、甄选活动名称
        hasPickApply() {

            return this.uFromdata.isFrameworkProject == 'true' && this.uFromdata.isDecision == 'true';
        },

        /// 合作伙伴 甄选要求时间 
        hasPartnerSelectTime() {

            return this.uFromdata.isFrameworkProject == 'false' && this.uFromdata.isDecision == 'false';
        },

        /// 合作伙伴 甄选信息（网络请求）
        hasPartner() {

            return this.uFromdata && this.uFromdata.isDecision == 'true' && this.hasProjectModule;
        },

        /// 成本
        buildTypeIsCB() {
            return this.fromdata.buildType == "成本";
        },

        /// 有承办 模块
        hasProjectModule() {
            var location = this.location;
            // 环节：市公司管理员承办、市公司领导审批、会签、会签通过、会签不通过、无需会签、归档
            if (location == "dict.directoToAdmin" ||
                location == "dict.directoToSpecialAdmin" ||
                location == "dict.GiveMasterToGiveManager" ||
                location == "dict.adminToLead" ||
                location == "dict.directoToCountersign" ||
                location == "dict.agree" ||
                location == "dict.noAgree" ||
                location == "dict.agreeNoWant" ||
                location == "dict.toStart") {

                if ((location == "dict.directoToAdmin" ||
                    location == "dict.directoToSpecialAdmin" ||
                    location == "dict.GiveMasterToGiveManager") && !this.todotype) {

                } else {
                    if ((location == "dict.directoToCountersign" ||
                        location == "dict.agree" ||
                        location == "dict.noAgree" ||
                        location == "dict.agreeNoWant" ||
                        location == "dict.toStart") &&
                        !this.fromdata) {

                    } else {
                        return true;
                    }
                }
            }

            return false;
        },

        /// 合作伙伴甄选信息显示
        checkPartnerData() {
            return this.uFromdata.isDecision == 'true';
        },

        /// 立项批复信息
        hasApprovalAndDesign() {

            if (this.hasProjectModule) {
                if (!this.todotype) {
                    return true;
                }

                if (!this.buildTypeIsCB) {
                    return true;
                }
            }
        },


    },

    props: ["fromdata", "location", "todotype","mergeAbilityInfoMode"],

    methods: {

        getParentParams() {

            this.uFromdata = this.fromdata.undertakeData;
            console.log(this.uFromdata);
            if (!this.uFromdata) {
                this.uFromdata = {};
            }
            this.getPartnerData(this.fromdata.businessId);
        },


        /// 获取显示字段
        isDecisionValue() {

            if (this.uFromdata.isDecision == 'true') {

                return '是';
            }
            else if (this.uFromdata.isDecision == 'false') {

                return '否';
            }
            else if (this.uFromdata.isDecision == '无需甄选-适用9one场景') {

                return '无需甄选-适用9one场景';
            }
            else {
                return '请选择';
            }
        },



        /// 获取合作伙伴甄选信息
        getPartnerData(value) {
            if (!this.hasPartner) {
                return;
            }
            Toast.loading({ message: "获取甄选信息", forbidClick: false, });
            hereProjectSelectPickModule(
                { userName: this.user.userName, businessId: value }
            ).then((result) => {
                this.zFromdata = {};
                Toast.clear();
                if (!result.data) {
                    Notify(result.message);
                    return;
                }

                if (result.data.data) {
                    var zFromdata = result.data.data;
                    /// 甄选申请信息
                    this.mapPickApproval = zFromdata.mapPickApproval;

                    /// 甄选二次谈判信息
                    if (zFromdata.mapPickReconsider != null) {
                        this.mapPickReconsider = zFromdata.mapPickReconsider;
                    }

                    /// 甄选结果信息
                    this.mapPickResult = zFromdata.mapPickResult;

                    /// 甄选方案信息
                    this.mapPickScheme = zFromdata.mapPickScheme;

                }
            });
        },
    },



    components: {
      dict_type_value,
        SectionHeader,
        XuBudgetBox
    },
};
</script>
 
<style scoped>
.module{
  color: #00a0e9;
  font-size: 15px;
  background: #f3f3f3;
  padding: 5px;
  text-align: center;
}
</style>
